package com.yuanwu.ncs.openjob;

import io.openjob.worker.context.JobContext;
import io.openjob.worker.processor.ProcessResult;
import io.openjob.worker.spring.boot.annotation.Openjob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

//@Component
//@Slf4j
//public class ShardingAnnotationProcessor {
//
//    @Openjob("annotationShardingProcessor")
//    public ProcessResult shardingProcessor(JobContext jobContext) {
//        log.info("Sharding annotation processor execute success! shardingId={} shardingNum={} shardingParams={}",
//                jobContext.getShardingId(), jobContext.getShardingNum(), jobContext.getShardingParam());
//        log.info("jobContext={}", jobContext);
//        return ProcessResult.success();
//    }
//}
